package com.tender.desensitization.filter;

import org.apache.commons.lang3.ClassUtils;

import java.lang.reflect.Field;
import java.lang.reflect.Modifier;

public class PrimitiveAndFinalFieldFilter implements FieldFilter {
    @Override
    public boolean isMatch(Field field) {
        return Modifier.isFinal(field.getModifiers()) && ClassUtils.isPrimitiveOrWrapper(field.getType());
    }
}
